package com.joolun.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@TableName("wx_inviteuser")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "邀约用户关系表")
public class InviteUser extends Model<InviteUser> {

    /*
    *
CREATE TABLE wx_inviteuser (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '主键',
  inviteuser_id varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '邀约用户ID',
  inviteduser_id varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '被邀约用户ID',
  invite_dt datetime NOT NULL COMMENT '邀约时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY (`inviteuser_id`,`inviteduser_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='邀约用户关联表';
    * */

    /**
     * PK
     */
    @ApiModelProperty(value = "PK")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 邀约用户ID
     */
    @ApiModelProperty(value = "邀约用户ID")
    private String inviteuser_id;

    /**
     * 被邀约用户ID
     */
    @ApiModelProperty(value = "被邀约用户ID")
    private String inviteduser_id;

    /**
     * 邀约时间
     */
    @ApiModelProperty(value = "邀约时间")
    private LocalDateTime invite_dt;
}
